package com.sdy.resdir.biz.model;

import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.sdy.common.model.BaseModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.sdy.common.utils.DateUtil;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author hyh
 * @since 2019-10-23
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ApiModel(value="RdResCatalogTableInfo对象", description="")
public class RdResCatalogTableInfo extends BaseModel {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @ApiModelProperty(value = "主键")
    @TableId
    private Integer id;

    /**
     * 关联的资源编目的ID
     */
    @ApiModelProperty(value = "关联的资源编目的ID")
    private Integer resCatalogId;

    /**
     * 字段中文名称
     */
    @ApiModelProperty(value = "字段中文名称")
    private String colChName;

    /**
     * 字段英文名称
     */
    @ApiModelProperty(value = "字段英文名称 ")
    private String colEnName;

    /**
     * 字段类型
     */
    @ApiModelProperty(value = "字段类型")
    private String colType;

    /**
     * 字段长度
     */
    @ApiModelProperty(value = "字段长度")
    private String colLength;

    /**
     * 字段精度
     */
    @ApiModelProperty(value = "字段精度")
    private String colPrecesion;

    /**
     * 是否为主键: 0-否 1-是
     */
    @ApiModelProperty(value = "是否为主键: 0-否 1-是")
    private Integer isKey;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = DateUtil.DATETIME_FORMAT)
    private Date createTime;

}
